package com.zr.subclass.mapper;

import com.zr.subclass.model.pojo.SubClass;
import com.zr.subclass.model.pojo.SubClassExample;
import com.zr.subclass.model.pojo.SubClassUpdateVo;
import com.zr.utils.page.PageParameterUtil;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SubClassMapper {
    int countByExample(SubClassExample example);

    int deleteByExample(SubClassExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SubClass record);

    int insertSelective(SubClass record);

    List<SubClass> selectByExample(SubClassExample example);

    SubClass selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") SubClass record, @Param("example") SubClassExample example);

    int updateByExample(@Param("record") SubClass record, @Param("example") SubClassExample example);

    int updateByPrimaryKeySelective(SubClass record);

    int updateByPrimaryKey(SubClass record);

    Integer getCount(PageParameterUtil pageParameterUtil);

    List<SubClass> getCurrentPageData(PageParameterUtil pageParameterUtil);

    int subClassStatus(SubClass planClass);

    int querySubClassCode(String code);

    int querySubClassName(String code);

    void updatePlanClass(SubClassUpdateVo subClassUpdateVo);
}